import * as Types from './mutations-type.js'
import {
  findAdmin
} from 'service'

export default {
  async [Types.SET_ADMIN]({ commit }) {
    let result = await findAdmin()
    commit(Types.SET_ADMIN, result.data.data)
  },
  async [Types.SET_USER]({ commit }, user) {
    commit(Types.SET_USER, user)
  },
}